
exports.main = async function(event,context) {
 try{
	 const res = await uniCloud.httpclient.request(`https://api.weixin.qq.com/sns/jscode2session?appid=wxa92e7b1b1dd1d6bd&secret=b4b32372acdc919a750329bd69071c0c&js_code=${event.code}&grant_type=authorization_code`, {
     method: 'GET',
     contentType: 'json', // 指定以application/json发送data内的数据
     dataType: 'json' // 指定返回值为json格式，自动进行parse
   })
   return res
   }catch(e){
	 console.log(e)
 }
    
}
